//带标签的模板字符串

const name = "tom";
const gender = true;
function myTagFunc(string, name, gender) {
  //   console.log(string);
  const sex = gender ? "man" : woman;
  return string[0] + name + string[1] + sex + string[2];
}
const result = myTagFunc`hey, ${name} is a ${gender}.`;
console.log(result);
